package cn.itsource.rpms.query;

public class BaseQuery {
    private Integer  currentPage =1;//当前页
    private Integer  pageSize = 10;//每页显示的10条数据

    //javabean 的可读属性 #{start}
    public Integer getStart(){
        return (this.currentPage-1)*this.pageSize;
    }

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
